﻿function ScrollToId(id) {
    $('html,body').animate({ scrollTop: $("#" + id).offset().top }, 'slow');
}
function BoxyByID(id, header, showmodal) {
    new Boxy(jQuery('#'+id), { title: header, modal: showmodal });
}
function Logout(returnURL) {
    if (returnURL) {
        window.location = '/Logout.aspx?ReturnUrl=' + returnURL;
    } else {
        window.location = '/Logout.aspx?ReturnUrl=' + window.location;
    }
}